package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
@RequestMapping("/user")
public class UserAction {

	@RequestMapping("/default")
	public ModelAndView indexlist(){
		
		ModelAndView mav = new ModelAndView();
		mav.setViewName("default.list");
		return mav;
	}
	
	@RequestMapping("/userlist")
	public ModelAndView userlist(){
		
		ModelAndView mav = new ModelAndView();
		mav.setViewName("user.list");
		mav.addObject("data", "大家好，我是user_list");
		return mav;
	}
	
}
